package mya.mes.mdc.queries.dispatch;

import mya.common.jpa.context.ServiceContext;
import mya.mes.mdc.model.dispatch.MdcDispatchContent;

import java.util.List;

public class MdcDispatchContentQuery {

    public static List<MdcDispatchContent> loadAll(ServiceContext context) throws Exception {

        List<MdcDispatchContent> list = context.em.createNamedQuery("MdcDispatchContent.loadAll", MdcDispatchContent.class)
                .getResultList();
        return list;
    }
}
